﻿using FluentScheduler;
using JobScheduler;

// 单实例
var reg = new Registry();
reg.Schedule(() => { Console.WriteLine("Hello world"); }).ToRunEvery(3).Seconds();
JobManager.Initialize(reg);


// 多实例
JobManager.Initialize(new JobFactory());

Console.WriteLine("主线程继续执行...");
Console.ReadLine();